package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by qyhl2 on 2017/12/27.
 */

public class PlayerWorkVOBean implements Parcelable {

    /**
     * 作品
     */
    private PlayerWorksBean playerWorks;

    /**
     * 图片
     */
    private List<ActivityImageBean> images;


    public PlayerWorksBean getPlayerWorks() {
        return playerWorks;
    }

    public void setPlayerWorks(PlayerWorksBean playerWorks) {
        this.playerWorks = playerWorks;
    }

    public List<ActivityImageBean> getImages() {
        return images;
    }

    public void setImages(List<ActivityImageBean> images) {
        this.images = images;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.playerWorks, flags);
        dest.writeTypedList(this.images);
    }

    public PlayerWorkVOBean() {
    }

    protected PlayerWorkVOBean(Parcel in) {
        this.playerWorks = in.readParcelable(PlayerWorksBean.class.getClassLoader());
        this.images = in.createTypedArrayList(ActivityImageBean.CREATOR);
    }

    public static final Creator<PlayerWorkVOBean> CREATOR = new Creator<PlayerWorkVOBean>() {
        @Override
        public PlayerWorkVOBean createFromParcel(Parcel source) {
            return new PlayerWorkVOBean(source);
        }

        @Override
        public PlayerWorkVOBean[] newArray(int size) {
            return new PlayerWorkVOBean[size];
        }
    };
}
